<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="http://test.cashbook.worktext/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>地铁跑酷直冲</title>
    <link rel="stylesheet" href="http://test.cashbook.work/layui/css/layui.css">
    <script src="http://test.cashbook.work/layui/layui.js"></script>
    <style>

        .layui-form {
            width: 60%;
            border: 2px solid #efefef;
            padding: 32px;
            border-radius: 16px;
            box-shadow: 12px 12px 2px 1px rgba(0, 100, 255, .2);
        }

        body, .ct {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        body {
            flex-direction: column;
            height: 100vh
        }
    </style>
</head>
<body>
    <form class="layui-form" action="">
        <div class="container body-content">
            <div class="layui-tab">
                <ul class="layui-tab-title">
                    <li class="layui-this">地铁跑酷</li>
                    <li>游戏公告</li>
                    <li>套餐详情</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <hr />
                        

<div class="layui-form-item">
    <label class="layui-form-label">跑号</label>
    <div class="layui-input-block">
        <input type="number" name="uid" lay-verify="required" placeholder="请输入跑号" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">渠道</label>
    <div class="layui-input-block">
        <input type="radio" name="platform" checked value="andr" title="安卓">
        <input type="radio" name="platform" value="ios" title="IOS">
    </div>
</div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button type="submit" style="border-radius:15px;width:100%" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="demo1">立即提交</button>
                            </div>
                        </div>
                        <hr />
                    </div>
                    <div class="layui-tab-item">内部群：746101974。注:内部链接，禁止外传，如发现将<span style="color:red;">关闭接口！！！</span></div>
                    <div class="layui-tab-item">1:黄钥匙:8888,道具滑板:8888,蓝钥匙:38888,金币:88888888,背饰:18,头像框:66,特权:3,宝物:34,最高分数:1314520,人物等级:520,最高段位:6,最高排名:1,滑板:175,角色皮肤:164,角色:183</div>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
<script>
    layui.use(['form', 'layer', 'element'], function () {
        var form = layui.form,
            $ = layui.$;

        form.on('submit(demo1)', function (data) {
            layer.confirm('确认信息无误并提交？', {
                btn: ['确定', '取消'] //按钮
            }, function () {
                $.ajax({
                    url: 'http://test.cashbook.work/Tool/Subway_set',
                    async: true,
                    type: 'POST',
                    data: { data: JSON.stringify(data.field) },
                    beforeSend: function (xhr) {
                        layer.load(1, {
                            shade: [0.1, '#fff'] //0.1透明度的白色背景
                        });
                    },
                    success: function (res) {
                        layer.alert(res);
                        layer.closeAll('loading');
                    },
                    error: function () {
                        layer.alert("请24小时后上号查看", { icon: 1 });
                        layer.closeAll('loading');
                    }
                });
            });

            return false;
        });
    })
</script>